import request from '@/utils/request';

// 获取首页广告轮播图数据
export function homeImages() {
  return request.get('/indexImgs')
}
// 获取首页文本轮播图数据
export function homeTexts() {
  return request.get('/shop/notice/topNoticeList')
}
// 获取标题数据
export function homeTagList() {
  return request.get('/prod/tag/prodTagList')
}
// 获取热卖更多宝贝数据
export function homeHotList() {
  return request.get('/prod/prodListByTagId?tagId=2&current=1&size=6')
}
// 获取公告详情数据
export function homeNoticeDetail(id) {
  return request.get(`/shop/notice/info/${id}`)
}
// 新品推荐数据 限时特惠数据 每日疯抢数据
export function homeNavList(payload) {
  return request.get(`/prod/${payload.path}?current=${payload.count}&size=10`)
}
//  获取更多数据
export function homeMoreBodyList() {
  return request.get('/prod/prodListByTagId?tagId=2&current=1&size=10')
}